home *** CD-ROM | disk | FTP | other *** search
/ Delphi 2.0 - Programmer's Utilities Power Pack / Delphi 2.0 Programmer's Utilities Power Pack.iso / m_to_r / mailx4 / ocxsessi.fr_ / ocxsessi.bin (.txt)
Encoding:
Visual Basic Form  |  1996-09-15  |  6.1 KB  |  209 lines

  1. VERSION 4.00
  2. Begin VB.Form SessionForm 
  3.    Caption         =   "Mail X Session Form"
  4.    ClientHeight    =   3255
  5.    ClientLeft      =   1290
  6.    ClientTop       =   1920
  7.    ClientWidth     =   6390
  8.    BeginProperty Font 
  9.       name            =   "MS Sans Serif"
  10.       charset         =   1
  11.       weight          =   700
  12.       size            =   8.25
  13.       underline       =   0   'False
  14.       italic          =   0   'False
  15.       strikethrough   =   0   'False
  16.    EndProperty
  17.    Height          =   3630
  18.    Left            =   1245
  19.    LinkTopic       =   "Form2"
  20.    ScaleHeight     =   3255
  21.    ScaleWidth      =   6390
  22.    Top             =   1590
  23.    Width           =   6480
  24.    Begin VB.Frame Frame1 
  25.       Caption         =   "Recipient Functions:"
  26.       Height          =   1335
  27.       Left            =   120
  28.       TabIndex        =   5
  29.       Top             =   1800
  30.       Width           =   6135
  31.       Begin VB.CommandButton BtnResolve 
  32.          Caption         =   "ResolveNames"
  33.          Height          =   375
  34.          Left            =   120
  35.          TabIndex        =   11
  36.          Top             =   240
  37.          Width           =   1695
  38.       End
  39.       Begin VB.CommandButton BtnAdd 
  40.          Caption         =   "Add Resolved Names"
  41.          Height          =   375
  42.          Left            =   2040
  43.          TabIndex        =   10
  44.          Top             =   240
  45.          Width           =   2055
  46.       End
  47.       Begin VB.CommandButton BtnAddressDialog 
  48.          Caption         =   "Address Dialog"
  49.          Height          =   375
  50.          Left            =   4200
  51.          TabIndex        =   9
  52.          Top             =   240
  53.          Width           =   1815
  54.       End
  55.       Begin VB.CommandButton Command1 
  56.          Caption         =   "Fetch First"
  57.          Height          =   375
  58.          Left            =   120
  59.          TabIndex        =   8
  60.          Top             =   840
  61.          Width           =   1695
  62.       End
  63.       Begin VB.CommandButton Command2 
  64.          Caption         =   "Fetch Next"
  65.          Height          =   375
  66.          Left            =   2040
  67.          TabIndex        =   7
  68.          Top             =   840
  69.          Width           =   2055
  70.       End
  71.       Begin VB.CommandButton Command3 
  72.          Caption         =   "Delete Recipient"
  73.          Height          =   375
  74.          Left            =   4200
  75.          TabIndex        =   6
  76.          Top             =   840
  77.          Width           =   1815
  78.       End
  79.    End
  80.    Begin VB.TextBox szResolveText 
  81.       Height          =   330
  82.       Left            =   2220
  83.       TabIndex        =   1
  84.       Top             =   660
  85.       Width           =   3930
  86.    End
  87.    Begin Mailx16Lib.MReci MReci1 
  88.       Left            =   5040
  89.       Top             =   1200
  90.       _version        =   65541
  91.       _extentx        =   900
  92.       _extenty        =   900
  93.       _stockprops     =   0
  94.       addresscaption  =   "Mail X Address Caption "
  95.       bindstring      =   "MMsg1"
  96.       fetchtype       =   1
  97.    End
  98.    Begin Mailx16Lib.MMsg MMsg1 
  99.       Left            =   3840
  100.       Top             =   1200
  101.       _version        =   65541
  102.       _extentx        =   900
  103.       _extenty        =   900
  104.       _stockprops     =   0
  105.       sortmsg         =   0   'False
  106.       markasread      =   0   'False
  107.       displaysenddialog=   0   'False
  108.       bindstring      =   "MSess1"
  109.    End
  110.    Begin Mailx16Lib.MSess MSess1 
  111.       Left            =   5520
  112.       Top             =   0
  113.       _version        =   65541
  114.       _extentx        =   900
  115.       _extenty        =   900
  116.       _stockprops     =   0
  117.    End
  118.    Begin Mailx16Lib.MForm MForm2 
  119.       Left            =   120
  120.       Top             =   120
  121.       _version        =   65541
  122.       _extentx        =   3598
  123.       _extenty        =   500
  124.       _stockprops     =   0
  125.       mxformname      =   "FormTag1"
  126.    End
  127.    Begin VB.Label nCount 
  128.       Height          =   315
  129.       Left            =   1995
  130.       TabIndex        =   4
  131.       Top             =   1260
  132.       Width           =   795
  133.    End
  134.    Begin VB.Label Label3 
  135.       Caption         =   "Recipient Count:"
  136.       Height          =   300
  137.       Left            =   180
  138.       TabIndex        =   3
  139.       Top             =   1260
  140.       Width           =   1665
  141.    End
  142.    Begin VB.Label Label2 
  143.       Caption         =   "(Introduce a List: Name1;Name2; etc)"
  144.       Height          =   285
  145.       Left            =   2205
  146.       TabIndex        =   2
  147.       Top             =   285
  148.       Width           =   3420
  149.    End
  150.    Begin VB.Label Label1 
  151.       Caption         =   "Address To Resolve:"
  152.       Height          =   285
  153.       Left            =   150
  154.       TabIndex        =   0
  155.       Top             =   690
  156.       Width           =   1995
  157.    End
  158. Attribute VB_Name = "SessionForm"
  159. Attribute VB_Creatable = False
  160. Attribute VB_Exposed = False
  161. Private Sub BtnAdd_Click()
  162.     MReci1.Action = ACTION_ADDRECIPIENT
  163.     UpdateCount
  164. End Sub
  165. Private Sub BtnAddressDialog_Click()
  166.     MReci1.Action = ACTION_ADDRESS
  167.     UpdateCount
  168. End Sub
  169. Private Sub BtnResolve_Click()
  170.     MReci1.ResolveName = szResolveText
  171.     szResolveText = MReci1.ResolveName
  172. End Sub
  173. Private Sub Command1_Click()
  174.     If MReci1.RecipientCount > 0 Then
  175.         MReci1.RecipientNum = 1
  176.         UpdateText
  177.     Else
  178.         MsgBox "Mail X Recipient Control is Empty"
  179.     End If
  180. End Sub
  181. Private Sub Command2_Click()
  182.     NextR = MReci1.RecipientNum + 1
  183.     If NextR <= MReci1.RecipientCount Then
  184.         MReci1.RecipientNum = NextR
  185.         UpdateText
  186.     Else
  187.         MsgBox "Last Recipient Reached"
  188.     End If
  189. End Sub
  190. Private Sub Command3_Click()
  191.     MReci1.Action = ACTION_DEL_RECIPIENT
  192.     UpdateCount
  193.     UpdateText
  194. End Sub
  195. Private Sub Form_Load()
  196.     Load SystemX
  197.     SystemX.MsMail = False
  198.     SystemX.Show 1
  199.     MSess1.Logon = True
  200.     If MSess1.Logon = False Then End
  201.     UpdateCount
  202. End Sub
  203. Private Sub UpdateCount()
  204.     nCount = MReci1.RecipientCount
  205. End Sub
  206. Private Sub UpdateText()
  207.     szResolveText = MReci1.RecipientName
  208. End Sub
  209.